﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace WpfTools {
    internal class RE_Search {
        public static List<string> Search(string query, string pattern) {
            var result = new List<string>();

            var matches = Regex.Matches(query, pattern);
            matches.ToList().ForEach(item => result.Add(item.Value));
            //result.AddRange.AddRange(matches.);

            return result;
        }
    }
}
